<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s"  uri="/struts-tags"%>
<style type="text/css">
.littlebox{height:30px;width:200px;float:left}
.bigbox{heigth:auto;widht:90%;padding:10px;border:1px solid #BBB;margin-top:10px;}
.boxtitle{height:30px;width:100%;background:#EEE;border-bottom:1px solid #bbb;text-align:center}
.bigbox label{width:170px;font-size:12px;}
</style>
 <script>
  $(function() {
    $( ".bigbox" ).buttonset();
/*    $("input[type='checkbox']").add('label')
   	.css('border','solid 1px #000')
   	.css('width','100px'); */
  });
  </script>
<s:if test='FLAG=="EDIT"'>
<title>角色编辑</title>
<span id="navlink">系统设置 >> 角色管理 >> 角色编辑</span>
</s:if><s:elseif test='FLAG=="ADD"'>
<title>角色添加</title>
<span id="navlink">系统设置 >> 角色管理>> 角色添加</span>
</s:elseif>

<s:form action="systemActionDo" method="post" id="form">
<s:if test='FLAG=="EDIT"'>
	<input type="hidden" name="role.roleid" value="${role.roleid}" />
</s:if>

<table class="table_box table_all_border" cellspacing="0" cellpadding="0">
<tr >
	<th><span class="need">*</span>角色名称</th><td><input type="text" name="role.rolename" value="${role.rolename}"/></td>
	<th><span class="need">*</span></th><td><input type="radio" name="role.enabled" value="true" <s:if test='role.enabled'>checked="checked"</s:if> />启用
<input type="radio" name="role.enabled" value="false" <s:if test='!role.enabled'>checked="checked"</s:if> />关闭</td>
	<th>描述</th><td><input type="text" name="role.roledesc" value="${role.roledesc}"/></td>
</tr>
</table><br />
<s:if test='FLAG=="EDIT"'>
	<div class="bigbox">
	<s:checkboxlist name="addlist" list="role_all_name" listKey="authid" listValue="authdesc" value="role_in_auth" />
	<div class="clear"></div>
	</div>
<br />
</s:if>
<div id="button_area">
<s:if test='FLAG=="EDIT"'>
	<s:submit name="roleedit" value="提交" method="roleedit"/>
</s:if><s:elseif test='FLAG=="ADD"'>
	<s:submit name="addrolesave" value="提交" method="rolesave"/>
</s:elseif>
</div>       
</s:form>
